using System;
using Castle.MonoRail.Framework;
using Pic.Model;

namespace Pic.Web.Components.Pic
{
    public class PicLogin : PicAbstractViewComponent
    {
        public override void Render()
        {
            Pic_Member member = (Pic_Member)MonoRailHttpHandler.CurrentContext.Session["Member"];
            if (member != null) {
                PropertyBag.Add("MemberName", member.PNickName);
            }
            base.Render();
        }
    }
}
